home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 August: Tool Chest / Dev.CD Aug 95 TC / Dev.CD Aug 95 TC.toast / Tool Chest / Interfaces / UniversalInterfaces 1.0 / CIncludes / stream.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-04-18  |  1.4 KB  |  56 lines  |  [TEXT/MPS ]

  1. /*
  2.  *------------------------------------------------------------------------
  3.  * Copyright:
  4.  *      © 1993 by Apple Computer Inc.  all rights reserved.
  5.  *
  6.  * Project:
  7.  *      PowerPC C++ Streams Library
  8.  *
  9.  * Filename:
  10.  *      stream.h
  11.  *
  12.  * Created:
  13.  *      1993
  14.  *
  15.  * Modified:
  16.  *      Date     Engineer       Comment
  17.  *      -------- -------------- ------------------------------------------
  18.  *      12/17/93 Rudy Wang      Made this file universal.
  19.  *------------------------------------------------------------------------
  20.  */
  21. #ifndef __STREAMH__
  22. #define __STREAMH__         1
  23.  
  24. #include <iostream.h>
  25. #include <iomanip.h>
  26. #include <stdiostream.h>
  27. #include <fstream.h>
  28.  
  29. #ifndef NULL
  30. #define NULL    0
  31. #endif
  32.  
  33. extern char* oct(long, int = 0);
  34. extern char* dec(long, int = 0);
  35. extern char* hex(long, int = 0);
  36.  
  37. extern char* chr(int, int = 0);         // chr(0) is an empty string ""
  38. extern char* str(const char*, int = 0);
  39. extern char* form(const char* ...);
  40.  
  41. extern istream& WS(istream&);
  42. extern void eatwhite(istream&);
  43.  
  44. static const int input  = (ios::in);
  45. static const int output = (ios::out);
  46. static const int append = (ios::app);
  47. static const int atend  = (ios::ate);
  48. static const int _good  = (ios::goodbit);
  49. static const int _bad   = (ios::badbit);
  50. static const int _fail  = (ios::failbit);
  51. static const int _eof   = (ios::eofbit);
  52.  
  53. typedef ios::io_state state_value;
  54.  
  55. #endif
  56.